#ifndef __KTVPCMDISHIFT_H__
#define __KTVPCMDISHIFT_H__
 
#define CHUNK_SIZE 4410 
#define MAX_BUFF_SIZE CHUNK_SIZE*10
#define MAX_AMP 32768.0 
#define M_PI  3.1415926535897932384626433832795
#define VOLUME 0.7


void* create(long numChannels, int chunkSize, int pitchShift);
void setData(short *audioOut, long numFrames, void *userData);
long process(short *audioOut, long numFrames, void *userData);
void destroyData(void *userData);
void changeParam(void *userData, int pitchShift);

void _dataIn2Out(void *userData, short *in_data, int in_len, short *out_data);
void _hanning(short *wave, int framesize);
void _hamming(short *wave, int framesize);
void _fillChunkData(void *userData, short *tmp_list, int size, short *in_list);

/* not used */
void reset(void *userData);

#endif